package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.TravelComment;
import cn.wolfcode.luowowo.comment.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by LENOVO on 2019/8/13.
 */
public interface ITravelCommentService {

    /**
     * 攻略评论的新增和修改
     * @param comment
     */
    TravelComment saveOrUpdate(TravelComment comment);

    /**
     * 评论的分页
     * @param qo
     * @return
     */
    Page query(TravelCommentQuery qo);

    /**
     * 查询前十
     * @return
     */
    List<TravelComment> getNumTop10();
}
